#include <iostream>
#include <cmath>
using namespace std;
int main()
{
  double x, y;
  cin >> x >> y;
  cout << (((x <= 0) && (y >= 0)) || ((x <= 0) && (y <= 0)));
  return 0;
}
